<?php

class Change_Products_Table {

  /**
   * Make changes to the database.
   *
   * @return void
   */
  public function up() {
    Schema::table('products', function($table) {
      $table->string('pic_url', 1024);
    });
  }

  /**
   * Revert the changes to the database.
   *
   * @return void
   */
  public function down() {
    Schema::table('products', function($table) {
      $table->drop_column('pic_url');
    });
  }

}
